import Vue from 'vue'
import ShouYe from '@/views/ShouYe'
import DingDan from '@/views/DingDan'
import FengLei from '@/views/FengLei'
import My from '@/views/My'

// 引入插件
import VueRouter from 'vue-router'

// 使用插件
Vue.use(VueRouter)

// 创建路由实例
const router = new VueRouter({
  routes: [
    {
      path: '/shouye',
      component: ShouYe,
      name: 'shouye'
    },
    {
      path: '/dingdan',
      component: DingDan,
      name: 'dingdan'
    },
    {
      path: '/fenglei',
      component: FengLei,
      name: 'fenglei'
    },
    {
      path: '/my',
      component: My,
      name:'my'
    }
]
})

// 对外暴露
export default router